<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QJoysticks: QJoysticks Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">QJoysticks
   </div>
   <div id="projectbrief">A simple way to use joysticks with your Qt application</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pri-slots">Private Slots</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="class_q_joysticks-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QJoysticks Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Manages the input systems and communicates them with the application.  
 <a href="class_q_joysticks.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_q_joysticks_8h_source.html">QJoysticks.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for QJoysticks:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_q_joysticks.png" usemap="#QJoysticks_map" alt=""/>
  <map id="QJoysticks_map" name="QJoysticks_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr class="memitem:ad46540bb96c23bef9dfc6284aee6e180"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#ad46540bb96c23bef9dfc6284aee6e180">updateInterfaces</a> ()</td></tr>
<tr class="separator:ad46540bb96c23bef9dfc6284aee6e180"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91abd059fcfbc3384a078bf730f477fe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#a91abd059fcfbc3384a078bf730f477fe">setVirtualJoystickRange</a> (qreal range)</td></tr>
<tr class="separator:a91abd059fcfbc3384a078bf730f477fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9aa53b1761048c15398be369cd229b7e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#a9aa53b1761048c15398be369cd229b7e">setVirtualJoystickEnabled</a> (bool enabled)</td></tr>
<tr class="separator:a9aa53b1761048c15398be369cd229b7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7397c0561724a81fd67f22fa05ef93b2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#a7397c0561724a81fd67f22fa05ef93b2">setSortJoysticksByBlacklistState</a> (bool sort)</td></tr>
<tr class="separator:a7397c0561724a81fd67f22fa05ef93b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe46b8b32979a847b97866fb5d51529c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#abe46b8b32979a847b97866fb5d51529c">setBlacklisted</a> (int index, bool blacklisted)</td></tr>
<tr class="separator:abe46b8b32979a847b97866fb5d51529c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
Signals</h2></td></tr>
<tr class="memitem:a7ce7ce6d574b7637d57aa3caad97963e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7ce7ce6d574b7637d57aa3caad97963e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>countChanged</b> ()</td></tr>
<tr class="separator:a7ce7ce6d574b7637d57aa3caad97963e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af0124a1abea0e6dc37487fa95d2cd317"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af0124a1abea0e6dc37487fa95d2cd317"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>POVEvent</b> (const <a class="el" href="struct_q_joystick_p_o_v_event.html">QJoystickPOVEvent</a> &amp;event)</td></tr>
<tr class="separator:af0124a1abea0e6dc37487fa95d2cd317"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa07e68508d81c7c03698d2cb2dbcf27"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afa07e68508d81c7c03698d2cb2dbcf27"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>axisEvent</b> (const <a class="el" href="struct_q_joystick_axis_event.html">QJoystickAxisEvent</a> &amp;event)</td></tr>
<tr class="separator:afa07e68508d81c7c03698d2cb2dbcf27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a337f5ae8353e66405778517fabf00003"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a337f5ae8353e66405778517fabf00003"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>buttonEvent</b> (const <a class="el" href="struct_q_joystick_button_event.html">QJoystickButtonEvent</a> &amp;event)</td></tr>
<tr class="separator:a337f5ae8353e66405778517fabf00003"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6bdd5322e3d91fa9b54f08e61392494a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6bdd5322e3d91fa9b54f08e61392494a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>povChanged</b> (const int js, const int pov, const int angle)</td></tr>
<tr class="separator:a6bdd5322e3d91fa9b54f08e61392494a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28cc6d4f4dc44d35c258239b854d0d7c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a28cc6d4f4dc44d35c258239b854d0d7c"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>axisChanged</b> (const int js, const int axis, const qreal value)</td></tr>
<tr class="separator:a28cc6d4f4dc44d35c258239b854d0d7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f0df1e0348f440f6a39528cf75a5c4d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1f0df1e0348f440f6a39528cf75a5c4d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>buttonChanged</b> (const int js, const int button, const bool pressed)</td></tr>
<tr class="separator:a1f0df1e0348f440f6a39528cf75a5c4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae08141261c71240a1497a29fb9fb1a9b"><td class="memItemLeft" align="right" valign="top">Q_INVOKABLE int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#ae08141261c71240a1497a29fb9fb1a9b">count</a> () const </td></tr>
<tr class="separator:ae08141261c71240a1497a29fb9fb1a9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2bf7d64347d6d65f16f7c7023c73561"><td class="memItemLeft" align="right" valign="top">Q_INVOKABLE int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#ad2bf7d64347d6d65f16f7c7023c73561">nonBlacklistedCount</a> ()</td></tr>
<tr class="separator:ad2bf7d64347d6d65f16f7c7023c73561"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a658bfc83e9be280e4fcc75c9d94a91ee"><td class="memItemLeft" align="right" valign="top">Q_INVOKABLE int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#a658bfc83e9be280e4fcc75c9d94a91ee">getNumAxes</a> (int index)</td></tr>
<tr class="separator:a658bfc83e9be280e4fcc75c9d94a91ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ea024f5dd5cee034c2587cdc0d1122e"><td class="memItemLeft" align="right" valign="top">Q_INVOKABLE int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#a9ea024f5dd5cee034c2587cdc0d1122e">getNumPOVs</a> (int index)</td></tr>
<tr class="separator:a9ea024f5dd5cee034c2587cdc0d1122e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41ccd0b85131b7dd7d586aac276ed33f"><td class="memItemLeft" align="right" valign="top">Q_INVOKABLE int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#a41ccd0b85131b7dd7d586aac276ed33f">getNumButtons</a> (int index)</td></tr>
<tr class="separator:a41ccd0b85131b7dd7d586aac276ed33f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31a59adc5932ea23a3582b0f6e481ec7"><td class="memItemLeft" align="right" valign="top">Q_INVOKABLE bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#a31a59adc5932ea23a3582b0f6e481ec7">isBlacklisted</a> (int index)</td></tr>
<tr class="separator:a31a59adc5932ea23a3582b0f6e481ec7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e0f11b27ec83fbed6e7c65578edfcfb"><td class="memItemLeft" align="right" valign="top">Q_INVOKABLE bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#a7e0f11b27ec83fbed6e7c65578edfcfb">joystickExists</a> (int index)</td></tr>
<tr class="separator:a7e0f11b27ec83fbed6e7c65578edfcfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7224c53f49ffa9121014c71e45efa57c"><td class="memItemLeft" align="right" valign="top">Q_INVOKABLE QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#a7224c53f49ffa9121014c71e45efa57c">getName</a> (int index)</td></tr>
<tr class="separator:a7224c53f49ffa9121014c71e45efa57c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6690f2ee26d4018e5514af31f4050be7"><td class="memItemLeft" align="right" valign="top">Q_INVOKABLE QStringList&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#a6690f2ee26d4018e5514af31f4050be7">deviceNames</a> () const </td></tr>
<tr class="separator:a6690f2ee26d4018e5514af31f4050be7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e4c5c211ce2cd2b82f2066d720127a4"><td class="memItemLeft" align="right" valign="top">QList&lt; <a class="el" href="struct_q_joystick_device.html">QJoystickDevice</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#a2e4c5c211ce2cd2b82f2066d720127a4">inputDevices</a> () const </td></tr>
<tr class="separator:a2e4c5c211ce2cd2b82f2066d720127a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9ced0a1c30ad2f04b4244a2c1a2e3f9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_d_l___joysticks.html">SDL_Joysticks</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#ae9ced0a1c30ad2f04b4244a2c1a2e3f9">sdlJoysticks</a> () const </td></tr>
<tr class="separator:ae9ced0a1c30ad2f04b4244a2c1a2e3f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae673f2c42ee10f32b7ef09f9c06cc98e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_virtual_joystick.html">VirtualJoystick</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#ae673f2c42ee10f32b7ef09f9c06cc98e">virtualJoystick</a> () const </td></tr>
<tr class="separator:ae673f2c42ee10f32b7ef09f9c06cc98e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a416555f9b0822557a0a98fbaf51002f3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_q_joystick_device.html">QJoystickDevice</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#a416555f9b0822557a0a98fbaf51002f3">getInputDevice</a> (int index)</td></tr>
<tr class="separator:a416555f9b0822557a0a98fbaf51002f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:acf3d2acd60f9483dbb273f07346fe23d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_q_joysticks.html">QJoysticks</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#acf3d2acd60f9483dbb273f07346fe23d">getInstance</a> ()</td></tr>
<tr class="separator:acf3d2acd60f9483dbb273f07346fe23d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-slots"></a>
Private Slots</h2></td></tr>
<tr class="memitem:a214d5d5f7cbb20f942d8d38c40aa80c4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#a214d5d5f7cbb20f942d8d38c40aa80c4">resetJoysticks</a> ()</td></tr>
<tr class="separator:a214d5d5f7cbb20f942d8d38c40aa80c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96a3982db3ee4399087d8746fa385df8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#a96a3982db3ee4399087d8746fa385df8">addInputDevice</a> (<a class="el" href="struct_q_joystick_device.html">QJoystickDevice</a> *device)</td></tr>
<tr class="separator:a96a3982db3ee4399087d8746fa385df8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a046d4f6534272ef9b162b68ca55991f6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#a046d4f6534272ef9b162b68ca55991f6">onPOVEvent</a> (const <a class="el" href="struct_q_joystick_p_o_v_event.html">QJoystickPOVEvent</a> &amp;event)</td></tr>
<tr class="separator:a046d4f6534272ef9b162b68ca55991f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad27dc9901db82add491eec3872ad37a9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#ad27dc9901db82add491eec3872ad37a9">onAxisEvent</a> (const <a class="el" href="struct_q_joystick_axis_event.html">QJoystickAxisEvent</a> &amp;event)</td></tr>
<tr class="separator:ad27dc9901db82add491eec3872ad37a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62f0ad5ad129f17dc04fa7c887f05094"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_joysticks.html#a62f0ad5ad129f17dc04fa7c887f05094">onButtonEvent</a> (const <a class="el" href="struct_q_joystick_button_event.html">QJoystickButtonEvent</a> &amp;event)</td></tr>
<tr class="separator:a62f0ad5ad129f17dc04fa7c887f05094"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a156988f16c5844dcf968704adee68e44"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a156988f16c5844dcf968704adee68e44"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_sortJoyticks</b></td></tr>
<tr class="separator:a156988f16c5844dcf968704adee68e44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a724a709e6b83b7ae4414f0855017dfe4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a724a709e6b83b7ae4414f0855017dfe4"></a>
QSettings *&#160;</td><td class="memItemRight" valign="bottom"><b>m_settings</b></td></tr>
<tr class="separator:a724a709e6b83b7ae4414f0855017dfe4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40fd30c6ca1f44a4247eac8028b607a5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a40fd30c6ca1f44a4247eac8028b607a5"></a>
<a class="el" href="class_s_d_l___joysticks.html">SDL_Joysticks</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>m_sdlJoysticks</b></td></tr>
<tr class="separator:a40fd30c6ca1f44a4247eac8028b607a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4470bf56d9dd120086abf3f37ae9a31"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad4470bf56d9dd120086abf3f37ae9a31"></a>
<a class="el" href="class_virtual_joystick.html">VirtualJoystick</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>m_virtualJoystick</b></td></tr>
<tr class="separator:ad4470bf56d9dd120086abf3f37ae9a31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a278c0c9adcf220ea5bef30fc96d01836"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a278c0c9adcf220ea5bef30fc96d01836"></a>
QList&lt; <a class="el" href="struct_q_joystick_device.html">QJoystickDevice</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>m_devices</b></td></tr>
<tr class="separator:a278c0c9adcf220ea5bef30fc96d01836"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:af8ca3d3af3f629af6495b7a227cf6fd9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af8ca3d3af3f629af6495b7a227cf6fd9"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>Test_QJoysticks</b></td></tr>
<tr class="separator:af8ca3d3af3f629af6495b7a227cf6fd9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Manages the input systems and communicates them with the application. </p>
<p>The <code><a class="el" href="class_q_joysticks.html" title="Manages the input systems and communicates them with the application. ">QJoysticks</a></code> class is the "god-object" of this system. It manages every input system used by the application (e.g. SDL for real joysticks and keyboard for virtual joystick) and communicates every module/input system with the rest of the application through standarized types.</p>
<p>The joysticks are assigned a numerical ID, which the <code><a class="el" href="class_q_joysticks.html" title="Manages the input systems and communicates them with the application. ">QJoysticks</a></code> can use to identify them. The ID's start with <code>0</code> (as with a QList). The ID's are refreshed when a joystick is attached or removed. The first joystick that has been connected to the computer will have <code>0</code> as an ID, the second joystick will have <code>1</code> as an ID, and so on...</p>
<dl class="section note"><dt>Note</dt><dd>the virtual joystick will ALWAYS be the last joystick to be registered, even if it has been enabled before any SDL joystick has been attached. </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a96a3982db3ee4399087d8746fa385df8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QJoysticks::addInputDevice </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_q_joystick_device.html">QJoystickDevice</a> *&#160;</td>
          <td class="paramname"><em>device</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Registers the given <em>device</em> to the <code><a class="el" href="class_q_joysticks.html" title="Manages the input systems and communicates them with the application. ">QJoysticks</a></code> system </p>

<p>Referenced by <a class="el" href="class_q_joysticks.html#ad46540bb96c23bef9dfc6284aee6e180">updateInterfaces()</a>.</p>

</div>
</div>
<a class="anchor" id="ae08141261c71240a1497a29fb9fb1a9b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QJoysticks::count </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the number of joysticks that are attached to the computer and/or registered with the <code><a class="el" href="class_q_joysticks.html" title="Manages the input systems and communicates them with the application. ">QJoysticks</a></code> system.</p>
<dl class="section note"><dt>Note</dt><dd>This count also includes the virtual joystick (if its enabled) </dd></dl>

<p>References <a class="el" href="class_q_joysticks.html#a2e4c5c211ce2cd2b82f2066d720127a4">inputDevices()</a>.</p>

<p>Referenced by <a class="el" href="class_q_joysticks.html#a7e0f11b27ec83fbed6e7c65578edfcfb">joystickExists()</a>, <a class="el" href="class_q_joysticks.html#ad2bf7d64347d6d65f16f7c7023c73561">nonBlacklistedCount()</a>, and <a class="el" href="class_q_joysticks.html#ad46540bb96c23bef9dfc6284aee6e180">updateInterfaces()</a>.</p>

</div>
</div>
<a class="anchor" id="a6690f2ee26d4018e5514af31f4050be7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QStringList QJoysticks::deviceNames </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns a list with the names of all registered joystick.</p>
<dl class="section note"><dt>Note</dt><dd>This list also includes the blacklisted joysticks </dd>
<dd>
This list also includes the virtual joystick (if its enabled) </dd></dl>

<p>References <a class="el" href="class_q_joysticks.html#a2e4c5c211ce2cd2b82f2066d720127a4">inputDevices()</a>, and <a class="el" href="struct_q_joystick_device.html#abc862e4add9e46d5126b6b5bee78b7af">QJoystickDevice::name</a>.</p>

</div>
</div>
<a class="anchor" id="a416555f9b0822557a0a98fbaf51002f3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_q_joystick_device.html">QJoystickDevice</a> * QJoysticks::getInputDevice </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns a pointer to the device at the given <em>index</em>. </p>

<p>References <a class="el" href="class_q_joysticks.html#a2e4c5c211ce2cd2b82f2066d720127a4">inputDevices()</a>, and <a class="el" href="class_q_joysticks.html#a7e0f11b27ec83fbed6e7c65578edfcfb">joystickExists()</a>.</p>

<p>Referenced by <a class="el" href="class_q_joysticks.html#a658bfc83e9be280e4fcc75c9d94a91ee">getNumAxes()</a>, <a class="el" href="class_q_joysticks.html#a41ccd0b85131b7dd7d586aac276ed33f">getNumButtons()</a>, and <a class="el" href="class_q_joysticks.html#a9ea024f5dd5cee034c2587cdc0d1122e">getNumPOVs()</a>.</p>

</div>
</div>
<a class="anchor" id="acf3d2acd60f9483dbb273f07346fe23d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_q_joysticks.html">QJoysticks</a> * QJoysticks::getInstance </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the one and only instance of this class </p>

</div>
</div>
<a class="anchor" id="a7224c53f49ffa9121014c71e45efa57c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString QJoysticks::getName </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the name of the given joystick </p>

<p>References <a class="el" href="class_q_joysticks.html#a7e0f11b27ec83fbed6e7c65578edfcfb">joystickExists()</a>.</p>

<p>Referenced by <a class="el" href="class_q_joysticks.html#abe46b8b32979a847b97866fb5d51529c">setBlacklisted()</a>.</p>

</div>
</div>
<a class="anchor" id="a658bfc83e9be280e4fcc75c9d94a91ee"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QJoysticks::getNumAxes </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the number of axes that the joystick at the given <em>index</em> has.</p>
<dl class="section note"><dt>Note</dt><dd>If the joystick does not exist, this function will return <code>0</code> </dd></dl>

<p>References <a class="el" href="class_q_joysticks.html#a416555f9b0822557a0a98fbaf51002f3">getInputDevice()</a>, <a class="el" href="class_q_joysticks.html#a7e0f11b27ec83fbed6e7c65578edfcfb">joystickExists()</a>, and <a class="el" href="struct_q_joystick_device.html#afcdb1f8f0e2ac8aab631a97c818b16a4">QJoystickDevice::numAxes</a>.</p>

</div>
</div>
<a class="anchor" id="a41ccd0b85131b7dd7d586aac276ed33f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QJoysticks::getNumButtons </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the number of buttons that the joystick at the given <em>index</em> has.</p>
<dl class="section note"><dt>Note</dt><dd>If the joystick does not exist, this function will return <code>0</code> </dd></dl>

<p>References <a class="el" href="class_q_joysticks.html#a416555f9b0822557a0a98fbaf51002f3">getInputDevice()</a>, <a class="el" href="class_q_joysticks.html#a7e0f11b27ec83fbed6e7c65578edfcfb">joystickExists()</a>, and <a class="el" href="struct_q_joystick_device.html#ad972d8e1406fbf968751293ca2303f5b">QJoystickDevice::numButtons</a>.</p>

</div>
</div>
<a class="anchor" id="a9ea024f5dd5cee034c2587cdc0d1122e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QJoysticks::getNumPOVs </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the number of POVs that the joystick at the given <em>index</em> has.</p>
<dl class="section note"><dt>Note</dt><dd>If the joystick does not exist, this function will return <code>0</code> </dd></dl>

<p>References <a class="el" href="class_q_joysticks.html#a416555f9b0822557a0a98fbaf51002f3">getInputDevice()</a>, <a class="el" href="class_q_joysticks.html#a7e0f11b27ec83fbed6e7c65578edfcfb">joystickExists()</a>, and <a class="el" href="struct_q_joystick_device.html#abdbb6c26f5656fccb2cd3afe442005e7">QJoystickDevice::numPOVs</a>.</p>

</div>
</div>
<a class="anchor" id="a2e4c5c211ce2cd2b82f2066d720127a4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; <a class="el" href="struct_q_joystick_device.html">QJoystickDevice</a> * &gt; QJoysticks::inputDevices </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns a pointer to a list containing all registered joysticks. This can be used for advanced hacks or just to get all properties of each joystick. </p>

<p>Referenced by <a class="el" href="class_q_joysticks.html#ae08141261c71240a1497a29fb9fb1a9b">count()</a>, <a class="el" href="class_q_joysticks.html#a6690f2ee26d4018e5514af31f4050be7">deviceNames()</a>, <a class="el" href="class_q_joysticks.html#a416555f9b0822557a0a98fbaf51002f3">getInputDevice()</a>, <a class="el" href="class_q_joysticks.html#a31a59adc5932ea23a3582b0f6e481ec7">isBlacklisted()</a>, <a class="el" href="class_q_joysticks.html#abe46b8b32979a847b97866fb5d51529c">setBlacklisted()</a>, and <a class="el" href="class_q_joysticks.html#ad46540bb96c23bef9dfc6284aee6e180">updateInterfaces()</a>.</p>

</div>
</div>
<a class="anchor" id="a31a59adc5932ea23a3582b0f6e481ec7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QJoysticks::isBlacklisted </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns <code>true</code> if the joystick at the given <em>index</em> is blacklisted.</p>
<dl class="section note"><dt>Note</dt><dd>If the joystick does not exist, this function will also return <code>true</code> </dd></dl>

<p>References <a class="el" href="class_q_joysticks.html#a2e4c5c211ce2cd2b82f2066d720127a4">inputDevices()</a>, and <a class="el" href="class_q_joysticks.html#a7e0f11b27ec83fbed6e7c65578edfcfb">joystickExists()</a>.</p>

<p>Referenced by <a class="el" href="class_q_joysticks.html#ad2bf7d64347d6d65f16f7c7023c73561">nonBlacklistedCount()</a>, <a class="el" href="class_q_joysticks.html#ad27dc9901db82add491eec3872ad37a9">onAxisEvent()</a>, <a class="el" href="class_q_joysticks.html#a62f0ad5ad129f17dc04fa7c887f05094">onButtonEvent()</a>, and <a class="el" href="class_q_joysticks.html#a046d4f6534272ef9b162b68ca55991f6">onPOVEvent()</a>.</p>

</div>
</div>
<a class="anchor" id="a7e0f11b27ec83fbed6e7c65578edfcfb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QJoysticks::joystickExists </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns <code>true</code> if the joystick at the given <em>index</em> is valid, otherwise, the function returns <code>false</code> and warns the user through the console. </p>

<p>References <a class="el" href="class_q_joysticks.html#ae08141261c71240a1497a29fb9fb1a9b">count()</a>.</p>

<p>Referenced by <a class="el" href="class_q_joysticks.html#a416555f9b0822557a0a98fbaf51002f3">getInputDevice()</a>, <a class="el" href="class_q_joysticks.html#a7224c53f49ffa9121014c71e45efa57c">getName()</a>, <a class="el" href="class_q_joysticks.html#a658bfc83e9be280e4fcc75c9d94a91ee">getNumAxes()</a>, <a class="el" href="class_q_joysticks.html#a41ccd0b85131b7dd7d586aac276ed33f">getNumButtons()</a>, <a class="el" href="class_q_joysticks.html#a9ea024f5dd5cee034c2587cdc0d1122e">getNumPOVs()</a>, <a class="el" href="class_q_joysticks.html#a31a59adc5932ea23a3582b0f6e481ec7">isBlacklisted()</a>, and <a class="el" href="class_q_joysticks.html#abe46b8b32979a847b97866fb5d51529c">setBlacklisted()</a>.</p>

</div>
</div>
<a class="anchor" id="ad2bf7d64347d6d65f16f7c7023c73561"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int QJoysticks::nonBlacklistedCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the number of joysticks that are not blacklisted. This can be considered the "effective" number of joysticks. </p>

<p>References <a class="el" href="class_q_joysticks.html#ae08141261c71240a1497a29fb9fb1a9b">count()</a>, and <a class="el" href="class_q_joysticks.html#a31a59adc5932ea23a3582b0f6e481ec7">isBlacklisted()</a>.</p>

</div>
</div>
<a class="anchor" id="ad27dc9901db82add491eec3872ad37a9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QJoysticks::onAxisEvent </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="struct_q_joystick_axis_event.html">QJoystickAxisEvent</a> &amp;&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Configures the QML-friendly signal based on the information given by the <em>event</em> data </p>

<p>References <a class="el" href="struct_q_joystick_axis_event.html#ab27e65287e8cd45c5d815a7601d038c5">QJoystickAxisEvent::axis</a>, <a class="el" href="struct_q_joystick_device.html#a77fdca9a6e30ef69eddbfb8e725d706a">QJoystickDevice::id</a>, <a class="el" href="class_q_joysticks.html#a31a59adc5932ea23a3582b0f6e481ec7">isBlacklisted()</a>, <a class="el" href="struct_q_joystick_axis_event.html#a6e868f2f8b7bb4342f31389a4ba46349">QJoystickAxisEvent::joystick</a>, and <a class="el" href="struct_q_joystick_axis_event.html#a3cc39770f2ffc48ce84bbc8f0626735a">QJoystickAxisEvent::value</a>.</p>

</div>
</div>
<a class="anchor" id="a62f0ad5ad129f17dc04fa7c887f05094"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QJoysticks::onButtonEvent </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="struct_q_joystick_button_event.html">QJoystickButtonEvent</a> &amp;&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Configures the QML-friendly signal based on the information given by the <em>event</em> data </p>

<p>References <a class="el" href="struct_q_joystick_button_event.html#a0b53a31e37287a605b3d2caa1c7ecb29">QJoystickButtonEvent::button</a>, <a class="el" href="struct_q_joystick_device.html#a77fdca9a6e30ef69eddbfb8e725d706a">QJoystickDevice::id</a>, <a class="el" href="class_q_joysticks.html#a31a59adc5932ea23a3582b0f6e481ec7">isBlacklisted()</a>, <a class="el" href="struct_q_joystick_button_event.html#a616462ff1cff0cf07d93971a9ee0a1d2">QJoystickButtonEvent::joystick</a>, and <a class="el" href="struct_q_joystick_button_event.html#a887b941b8d8ffe2ef90664bfcf28cb17">QJoystickButtonEvent::pressed</a>.</p>

</div>
</div>
<a class="anchor" id="a046d4f6534272ef9b162b68ca55991f6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QJoysticks::onPOVEvent </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="struct_q_joystick_p_o_v_event.html">QJoystickPOVEvent</a> &amp;&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Configures the QML-friendly signal based on the information given by the <em>event</em> data </p>

<p>References <a class="el" href="struct_q_joystick_p_o_v_event.html#a2c5f880d436de73d4b4ee3e00b192a60">QJoystickPOVEvent::angle</a>, <a class="el" href="struct_q_joystick_device.html#a77fdca9a6e30ef69eddbfb8e725d706a">QJoystickDevice::id</a>, <a class="el" href="class_q_joysticks.html#a31a59adc5932ea23a3582b0f6e481ec7">isBlacklisted()</a>, <a class="el" href="struct_q_joystick_p_o_v_event.html#a9639266822f2e7acd260acd5433173d2">QJoystickPOVEvent::joystick</a>, and <a class="el" href="struct_q_joystick_p_o_v_event.html#a021def038c4be20e09b26a118e8c2464">QJoystickPOVEvent::pov</a>.</p>

</div>
</div>
<a class="anchor" id="a214d5d5f7cbb20f942d8d38c40aa80c4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QJoysticks::resetJoysticks </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Removes all the registered joysticks and emits appropiate signals. </p>

</div>
</div>
<a class="anchor" id="ae9ced0a1c30ad2f04b4244a2c1a2e3f9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_d_l___joysticks.html">SDL_Joysticks</a> * QJoysticks::sdlJoysticks </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns a pointer to the SDL joysticks system. This can be used if you need to get more information regarding the joysticks registered and managed with SDL. </p>

<p>Referenced by <a class="el" href="class_q_joysticks.html#ad46540bb96c23bef9dfc6284aee6e180">updateInterfaces()</a>.</p>

</div>
</div>
<a class="anchor" id="abe46b8b32979a847b97866fb5d51529c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QJoysticks::setBlacklisted </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>blacklisted</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Blacklists or whitelists the joystick at the given <em>index</em>.</p>
<dl class="section note"><dt>Note</dt><dd>This function does not have effect if the given joystick does not exist </dd>
<dd>
Once the joystick is blacklisted, the joystick list will be updated </dd></dl>

<p>References <a class="el" href="class_q_joysticks.html#a7224c53f49ffa9121014c71e45efa57c">getName()</a>, <a class="el" href="class_q_joysticks.html#a2e4c5c211ce2cd2b82f2066d720127a4">inputDevices()</a>, <a class="el" href="class_q_joysticks.html#a7e0f11b27ec83fbed6e7c65578edfcfb">joystickExists()</a>, and <a class="el" href="class_q_joysticks.html#ad46540bb96c23bef9dfc6284aee6e180">updateInterfaces()</a>.</p>

</div>
</div>
<a class="anchor" id="a7397c0561724a81fd67f22fa05ef93b2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QJoysticks::setSortJoysticksByBlacklistState </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>sort</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>If <em>sort</em> is set to true, then the device list will put all blacklisted joysticks at the end of the list </p>

<p>References <a class="el" href="class_q_joysticks.html#ad46540bb96c23bef9dfc6284aee6e180">updateInterfaces()</a>.</p>

</div>
</div>
<a class="anchor" id="a9aa53b1761048c15398be369cd229b7e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QJoysticks::setVirtualJoystickEnabled </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enabled</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Enables or disables the virtual joystick </p>

<p>References <a class="el" href="class_virtual_joystick.html#abe2978ce90cbc91690dcfd86e0622417">VirtualJoystick::setJoystickEnabled()</a>, and <a class="el" href="class_q_joysticks.html#ae673f2c42ee10f32b7ef09f9c06cc98e">virtualJoystick()</a>.</p>

</div>
</div>
<a class="anchor" id="a91abd059fcfbc3384a078bf730f477fe"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QJoysticks::setVirtualJoystickRange </td>
          <td>(</td>
          <td class="paramtype">qreal&#160;</td>
          <td class="paramname"><em>range</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Changes the axis value range of the virtual joystick.</p>
<p>Take into account that maximum axis values supported by the <code><a class="el" href="class_q_joysticks.html" title="Manages the input systems and communicates them with the application. ">QJoysticks</a></code> system is from <code>-1</code> to <code>1</code>. </p>

<p>References <a class="el" href="class_virtual_joystick.html#aa19051519528f9723fcb4f3540c89099">VirtualJoystick::setAxisRange()</a>, and <a class="el" href="class_q_joysticks.html#ae673f2c42ee10f32b7ef09f9c06cc98e">virtualJoystick()</a>.</p>

</div>
</div>
<a class="anchor" id="ad46540bb96c23bef9dfc6284aee6e180"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void QJoysticks::updateInterfaces </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>'Rescans' for new/removed joysticks and registers them again. </p>

<p>References <a class="el" href="class_q_joysticks.html#a96a3982db3ee4399087d8746fa385df8">addInputDevice()</a>, <a class="el" href="struct_q_joystick_device.html#a484aa9ef817012b2e151f6cb12bc0a08">QJoystickDevice::blacklisted</a>, <a class="el" href="class_q_joysticks.html#ae08141261c71240a1497a29fb9fb1a9b">count()</a>, <a class="el" href="class_q_joysticks.html#a2e4c5c211ce2cd2b82f2066d720127a4">inputDevices()</a>, <a class="el" href="class_virtual_joystick.html#a34a56116049438a5c1fbd3886726f037">VirtualJoystick::joystick()</a>, <a class="el" href="struct_q_joystick_device.html#abc862e4add9e46d5126b6b5bee78b7af">QJoystickDevice::name</a>, <a class="el" href="class_q_joysticks.html#ae9ced0a1c30ad2f04b4244a2c1a2e3f9">sdlJoysticks()</a>, <a class="el" href="class_virtual_joystick.html#a746a7de4746074a076b00a61d7a08ea3">VirtualJoystick::setJoystickID()</a>, and <a class="el" href="class_q_joysticks.html#ae673f2c42ee10f32b7ef09f9c06cc98e">virtualJoystick()</a>.</p>

<p>Referenced by <a class="el" href="class_q_joysticks.html#abe46b8b32979a847b97866fb5d51529c">setBlacklisted()</a>, and <a class="el" href="class_q_joysticks.html#a7397c0561724a81fd67f22fa05ef93b2">setSortJoysticksByBlacklistState()</a>.</p>

</div>
</div>
<a class="anchor" id="ae673f2c42ee10f32b7ef09f9c06cc98e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_virtual_joystick.html">VirtualJoystick</a> * QJoysticks::virtualJoystick </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns a pointer to the virtual joystick system. This can be used if you need to get more information regarding the virtual joystick or want to change its properties directly.</p>
<dl class="section note"><dt>Note</dt><dd>You can also change the properties of the virtual joysticks using the functions of the <code><a class="el" href="class_q_joysticks.html" title="Manages the input systems and communicates them with the application. ">QJoysticks</a></code> system class </dd></dl>

<p>Referenced by <a class="el" href="class_q_joysticks.html#a9aa53b1761048c15398be369cd229b7e">setVirtualJoystickEnabled()</a>, <a class="el" href="class_q_joysticks.html#a91abd059fcfbc3384a078bf730f477fe">setVirtualJoystickRange()</a>, and <a class="el" href="class_q_joysticks.html#ad46540bb96c23bef9dfc6284aee6e180">updateInterfaces()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_q_joysticks_8h_source.html">QJoysticks.h</a></li>
<li>QJoysticks.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
